package com.macro.mall.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 数据看板趋势图DTO
 * Created by AI on 2025/09/15.
 */
@Data
@ApiModel("数据看板趋势图数据")
public class DashboardTrendDTO {
    
    @ApiModelProperty("时间轴标签")
    private List<String> labels;
    
    @ApiModelProperty("GMV趋势数据")
    private List<BigDecimal> gmvData;
    
    @ApiModelProperty("订单数趋势数据")
    private List<Long> orderData;
    
    @ApiModelProperty("时间聚合类型：hour-小时，day-天，week-周")
    private String aggregationType;
    
    /**
     * 趋势点数据
     */
    @Data
    @ApiModel("趋势数据点")
    public static class TrendPoint {
        @ApiModelProperty("时间标签")
        private String label;
        
        @ApiModelProperty("GMV值")
        private BigDecimal gmv;
        
        @ApiModelProperty("订单数")
        private Long orders;
    }
}
